package com.ychs.lawyerback01.common;

import lombok.Setter;


public enum ResultCode {
    SUCCESS(200,"操作成功"),
    ERROR(500,"系统异常联系管理员"),
    LOGIN_USERNAME_ERROR(500100,"登录或用户名有误"),
    LOGIN_PWD_ERROR(500101,"密码有误"),
    PARAMS_ERROR(500102,"参数有误" ),
    TOKEN_NOTFPUND(600100,"token不存在"),
    TOKEN_NOTVALID(600101,"token不合法"),
    TOKEN_EXPIRE(600102,"token已经过期"),
    METHOD_NOT_PRIVILEGE(600103,"没有访问此方法的权限"),
    FILE_UPLOAD_ERROR(5001, "文件上传失败"),
    DOCUMENT_NOT_FOUND(4004, "文档不存在"),
    ADD_FAILE(600104, "添加失败"),
    UPDATE_FAILE(600105, "修改失败"),
    DELETE_FAILE(600106, "删除失败"),
    WORD_EXIST(600107,"权限字符已存在"),
    USER_NOT_FOUND(600108, "用户不存在"),
    ID_CARD_EXIST(600109, "身份证号已存在"),
    PRACTICE_CERT_NO_EXIST(600110, "执业证号已存在"), OPERATION_FAIL(600111,"用户新增失败" ), PARAM_ERROR(600102,"用户ID不能为空" );

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private String msg;
    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
